﻿@{
    Layout = "~/Views/Shared/_LayoutMetroUI.cshtml";
}
<div class="control-panel">
    @using (Html.BeginForm("Search", "Tim_Kiem"))
    {
        <div class="search-input-div">
            @Html.TextBox("Search-Input-In-Page", (string)ViewBag.Keyword, new Dictionary<string, object> { { "placeholder", "Từ khóa tìm kiếm" }, { "data-val", ViewBag.Keyword } })
            <input type="submit" value="" id="search-img-btt" />
        </div>
        <div class="quick-result-div">
            <div class="scroll-enable" id="quick-result-display"></div>
        </div>
        <div class="search-criteria">
            @{ string Start_Price = Convert.ToString(ViewBag.Start_Price), End_Price = Convert.ToString(ViewBag.End_Price); }
            <table class="criteria-table">
                <tr>
                    <td class="criteria-name">Giá từ</td>
                    <td class="criteria-input">@Html.TextBox("Start-Price-Value", Start_Price, new Dictionary<string, object> { { "Class", "crit-price-input" }, { "data-val", Start_Price } })</td>
                </tr>
                <tr>
                    <td class="criteria-name">Tới</td>
                    <td class="criteria-input">@Html.TextBox("End-Price-Value", End_Price, new Dictionary<string, object> { {"Class" , "crit-price-input"}, { "data-val", End_Price } })</td>
                </tr>
                <tr>
                    <td class="criteria-name">Loại danh mục</td>
                    <td class="criteria-input">@Html.DropDownList("CatalogType", (SelectList)ViewBag.CatalogTypeList, "Tất cả", new Dictionary<string, object> { {"Class" , "crit-dropdown"}, { "data-val", ViewBag.CatalogTypeID } })</td>
                </tr>
                <tr>
                    <td class="criteria-name">Danh mục</td>
                    <td class="criteria-input">@Html.DropDownList("CatalogList", (SelectList)ViewBag.CatalogLists, "Tất cả", new Dictionary<string, object> { {"Class" , "crit-dropdown"}, { "data-val", ViewBag.CatalogID } })</td>
                </tr>
            </table>
        </div>
    }
</div>
<div class="content-cp">
    <div id="search-result">
        @RenderBody()
    </div>
</div>
